﻿using Prism.Mvvm;
using Prism.Navigation.Regions;

namespace ModBus.ViewModels
{
    public class ModBusAllViewModel : BindableBase, INavigationAware
    {
        public string Title { get; set; } = "ModBus通讯";
        public bool IsNavigationTarget(NavigationContext navigationContext)
        {
            return true;
        }
        /// <summary>
        /// 从该页面离开时触发
        /// </summary>
        /// <param name="navigationContext"></param>
        public void OnNavigatedFrom(NavigationContext navigationContext)
        {
            
        }
        /// <summary>
        /// 导航到该窗体,接收用户传递的参数以及是否允许导航控制
        /// </summary>
        /// <param name="navigationContext"></param>
        /// <exception cref="System.NotImplementedException"></exception>
        public void OnNavigatedTo(NavigationContext navigationContext)
        {
           
        }
    }
}
